Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpinic expand netCDF filetypes allowed, forgive missing "month" dimension, update BOZ syntax #6614

Conversation

czender
Copy link
Contributor

@czender czender commented Sep 13, 2024

This new feature allows interpinic to interpolate an ELM initial conditions file
that require storage in NC_FORMAT_64BIT_DATA and other netCDF4 formats.

[BFB] [Bugfix]


[BFB] [Land] [Bugfix]
This is a revised re-submit of #6613 with addition of BOZ patch supplied by Xylar to comply with newer Fortran syntax.
The main modifications to bishtgautam/lnd/interpinic-gnu improve interpinic to work with output datasets of any format. Previously, initerpinic failed if output format was not NC_FORMAT_64BIT_OFFSET. Our new deep (16-layer) snowpack modifications require restart fields that exceed 4 GB in size for hi-res (e.g., r0125) ELM grids. This new feature successfully interpolates to new initial conditions that require storage in 'NC_FORMAT_64BIT_DATA' and netCDF4 formats. These modifications also remove the (sometimes) unnecessary constraint that if the input dataset contains the month dimension, then so must the output dataset. In practice the month dimension may be present in the input dataset though unused by any variable (i.e., month is a superfluous dimension). Thus requiring its presence in the output dataset can create an extra hurdle. Instead of dying, interpinic now prints a warning about the situation and proceeds anyway.

…ing and continue (instead of failing) when input has month dimension and output does not.
Copy link
Contributor

@xylar xylar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@czender, thanks for including my BOZ changes. It looks good to me based on my limited experience building the tool.

@xylar
Copy link
Contributor

xylar commented Sep 19, 2024

Just so everyone knows, I'm building this tool on conda-forge via the e3sm-tools package:
https://github.com/conda-forge/e3sm-tools-feedstock

@xylar
Copy link
Contributor

xylar commented Sep 21, 2024

@rljacob and @bishtgautam, I would like to have this in before the 3.0.1 tag. I can only build new conda packages for E3SM release tags (conda-forge policy) and I would like to have these updates for the next E3SM-Unified release in December.

@rljacob rljacob added this to the v3.0.1 milestone Sep 22, 2024
@rljacob rljacob added bug fix PR BFB PR leaves answers BFB labels Sep 23, 2024
bishtgautam added a commit that referenced this pull request Sep 23, 2024
… (PR #6614)

This new feature allows `interpinic` to interpolate an ELM initial conditions file
that require storage in `NC_FORMAT_64BIT_DATA` and other netCDF4 formats.

[BFB] [Bugfix]
@bishtgautam bishtgautam merged commit 3d4085f into E3SM-Project:master Sep 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BFB PR leaves answers BFB bug fix PR Land
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants